<template>
    <div class="home">
        <img src="@/images/favicon.ico" alt=""/>
    </div>
</template>
<script setup lang="ts" name="Home">
    // 3秒后自动跳转到新闻
    import { useRouter } from 'vue-router'
    import { onMounted } from 'vue'
    const router = useRouter()
    onMounted(() => {
        setTimeout( 
            () => {
                router.push('/news')
            },
            3000
        )
    })

</script>
<style scoped>
    .home{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
</style>